package flex.cc.store.service.impl;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import flex.cc.store.dao.StoreQrDao;
import flex.cc.store.dto.entity.StoreQrEntity;
import flex.cc.store.service.StoreQrService;

/**
 * 
 * @author WANGCONG
 * 2021年12月20日下午13:19:46
 * @desc 网点推送对接接口业务实现层
 */
@Service("storeQrService")
@Transactional(rollbackFor = Exception.class)
public class StoreQrServiceImpl implements StoreQrService{

	@Resource
	private StoreQrDao storeQrDao;
	
	@Override
	public int insertVo(StoreQrEntity qr) {
		return storeQrDao.insertVo(qr);
	}

	@Override
	public StoreQrEntity getOneByParams(Map<String, Object> params) {
		return storeQrDao.getOneByParams(params);
	}

	/**
	*
	* @author WANGCONG
	* 2021年12月23日下午20:45:12
	* @desc 更新二维码状态信息
	*/
	@Override
	public int updateByParams(Map<String, Object> qr_params) {
		return storeQrDao.updateByParams(qr_params);
	}

}
